/*
 * Copyright (C) 2017 MediaTek Inc.
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License version 2 as
 * published by the Free Software Foundation.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
 * See http://www.gnu.org/licenses/gpl-2.0.html for more details.
 */

/* This file is generated by GenLP_setting.pl v1.5.7 */

#include <linux/init.h>
#include <linux/module.h>
#include <linux/kernel.h>

const unsigned int AP_CG_Golden_Setting_tcl_gs_dpidle_data[] = {
/*      Address     Mask        Golden Setting Value */
	0x10000000, 0x00000F00, 0x00000000,/* CLK_MODE */
	0x10000040, 0x80808000, 0x80808000,/* CLK_CFG_0 */
	0x10000050, 0x80808080, 0x80808080,/* CLK_CFG_1 */
	0x10000060, 0x80808080, 0x80808080,/* CLK_CFG_2 */
	0x10000070, 0x80808080, 0x80808080,/* CLK_CFG_3 */
	0x10000080, 0x80008080, 0x80008000,/* CLK_CFG_4 */
	0x10000090, 0x80800080, 0x00800080,/* CLK_CFG_5 */
	0x100000A0, 0x00008080, 0x00008080,/* CLK_CFG_6 */
	0x100000B0, 0x00000080, 0x00000000,/* CLK_CFG_7 */
	0x10000104, 0x00011078, 0x00001000,/* CLK_MISC_CFG_0 */
	0x10000320, 0x0000003C, 0x0000003C,/* CLK_AUDDIV_0 */
	0x10001074, 0x00000004, 0x00000000,/* PERI_BUS_DCM_CTRL */
	0x10001080, 0x98FFFF7F, 0x98FFFF60,/* MODULE_SW_CG_0_SET */
	0x10001084, 0x98FFFF7F, 0x00100200,/* MODULE_SW_CG_0_CLR */
	0x10001088, 0x9F9C7F96, 0x1B9C0B96,/* MODULE_SW_CG_1_SET */
	0x1000108C, 0x9F9C7F96, 0x03180880,/* MODULE_SW_CG_1_CLR */
	0x100010A4, 0x3FFC87DD, 0x3FFC87DD,/* MODULE_SW_CG_2_SET */
	0x100010A8, 0x3FFC87DD, 0x30008000,/* MODULE_SW_CG_2_CLR */
	0x100010C0, 0x003F87DB, 0x000187DB,/* MODULE_SW_CG_3_SET */
	0x100010C4, 0x003F87DB, 0x00000000,/* MODULE_SW_CG_3_CLR */
	0x10001200, 0x80000000, 0x00000000,/* INFRA_TOPAXI_SI0_CTL */
	0x1000320C, 0x80000000, 0x00000000,/* PERIAXI_SI0_CTL */
	0x1000C00C, 0x0000001E, 0x00000000,/* AP_PLL_CON3 */
	0x1000C014, 0x00036BF0, 0x000020A0,/* AP_PLL_CON5 */
	0x1000C23C, 0xFF000000, 0x00000000,/* MAINPLL_CON0 */
	0x1000C26C, 0xFF000000, 0x00000000,/* UNIVPLL_CON0 */
	0x102008B4, 0x00000700, 0x00000000,/* ETB_CK_CTL */
	0x11220000, 0x0F080104, 0x0F080104,/* AUDIO_TOP_CON0 */
	0x11220004, 0x000000F0, 0x000000F0,/* AUDIO_TOP_CON1 */
	0x11C10080, 0x00000002, 0x00000000,/* MIPI_RX_WRAPPER80_CSI0A */
	0x11C11080, 0x00000002, 0x00000000,/* MIPI_RX_WRAPPER80_CSI0A */
	0x11C12080, 0x00000002, 0x00000000,/* MIPI_RX_WRAPPER80_CSI0A */
	0x11C13080, 0x00000002, 0x00000000,/* MIPI_RX_WRAPPER80_CSI0A */
	0x11C14080, 0x00000002, 0x00000000,/* MIPI_RX_WRAPPER80_CSI0A */
	0x11C15080, 0x00000002, 0x00000000,/* MIPI_RX_WRAPPER80_CSI0A */
	0x13FFE004, 0x0000000F, 0x0000000F,/* MFG_CG_SET */
	0x13FFE008, 0x0000000F, 0x00000000,/* MFG_CG_CLR */
	0x14000100, 0x3FFFFFFF, 0x3FFFFFFF,/* MMSYS_CG_CON0 */
	0x15020000, 0x0000003D, 0x0000003D,/* IMG_CG_CON */
	0x17000000, 0x00001111, 0x00000000,/* VCODECSYS_CG_CON */
	0x17000004, 0x00001111, 0x00000000,/* VCODECSYS_CG_SET */
	0x17000008, 0x00001111, 0x00001111,/* VCODECSYS_CG_CLR */
	0x1A000000, 0x00001FC3, 0x00001FC3 /* CAMSYS_CG_CON */
};

const unsigned int *AP_CG_Golden_Setting_tcl_gs_dpidle =
		AP_CG_Golden_Setting_tcl_gs_dpidle_data;

unsigned int AP_CG_Golden_Setting_tcl_gs_dpidle_len = 129;

const unsigned int AP_CG_Golden_Setting_tcl_gs_suspend_data[] = {
/*      Address     Mask        Golden Setting Value */
	0x10000000, 0x00000F00, 0x00000000,/* CLK_MODE */
	0x10000040, 0x80808000, 0x80808000,/* CLK_CFG_0 */
	0x10000050, 0x80808080, 0x80808080,/* CLK_CFG_1 */
	0x10000060, 0x80808080, 0x80808080,/* CLK_CFG_2 */
	0x10000070, 0x80808080, 0x80808080,/* CLK_CFG_3 */
	0x10000080, 0x80008080, 0x80008080,/* CLK_CFG_4 */
	0x10000090, 0x80800080, 0x80800080,/* CLK_CFG_5 */
	0x100000A0, 0x00008080, 0x00008080,/* CLK_CFG_6 */
	0x100000B0, 0x00000080, 0x00000000,/* CLK_CFG_7 */
	0x10000104, 0x00001000, 0x00000000,/* CLK_MISC_CFG_0 */
	0x10000320, 0x0000003C, 0x0000003C,/* CLK_AUDDIV_0 */
	0x10001074, 0x00000004, 0x00000000,/* PERI_BUS_DCM_CTRL */
	0x10001080, 0x98FFFF7F, 0x98FFFF60,/* MODULE_SW_CG_0_SET */
	0x10001084, 0x98FFFF7F, 0x00100200,/* MODULE_SW_CG_0_CLR */
	0x10001088, 0x9F9C7F96, 0x1B9C0B96,/* MODULE_SW_CG_1_SET */
	0x1000108C, 0x9F9C7F96, 0x03180880,/* MODULE_SW_CG_1_CLR */
	0x100010A4, 0x3FFC87DD, 0x3FFC87DD,/* MODULE_SW_CG_2_SET */
	0x100010A8, 0x3FFC87DD, 0x30008000,/* MODULE_SW_CG_2_CLR */
	0x100010C0, 0x003F87DB, 0x000187DB,/* MODULE_SW_CG_3_SET */
	0x100010C4, 0x003F87DB, 0x00000000,/* MODULE_SW_CG_3_CLR */
	0x10001200, 0x80000000, 0x00000000,/* INFRA_TOPAXI_SI0_CTL */
	0x1000320C, 0x80000000, 0x00000000,/* PERIAXI_SI0_CTL */
	0x1000C00C, 0x0000001E, 0x00000000,/* AP_PLL_CON3 */
	0x1000C014, 0x00036BF0, 0x000020A0,/* AP_PLL_CON5 */
	0x1000C23C, 0xFF000000, 0x00000000,/* MAINPLL_CON0 */
	0x1000C26C, 0xFF000000, 0x00000000,/* UNIVPLL_CON0 */
	0x10017008, 0xFFFFFFFF, 0x00000000,/* World_CLK_CNTCV_L */
	0x1001700C, 0xFFFFFFFF, 0x00000000,/* World_CLK_CNTCV_H */
	0x102008B4, 0x00000700, 0x00000000,/* ETB_CK_CTL */
	0x11220000, 0x0F080104, 0x0F080104,/* AUDIO_TOP_CON0 */
	0x11220004, 0x000000F0, 0x000000F0,/* AUDIO_TOP_CON1 */
	0x11C10080, 0x00000002, 0x00000000,/* MIPI_RX_WRAPPER80_CSI0A */
	0x11C11080, 0x00000002, 0x00000000,/* MIPI_RX_WRAPPER80_CSI0A */
	0x11C12080, 0x00000002, 0x00000000,/* MIPI_RX_WRAPPER80_CSI0A */
	0x11C13080, 0x00000002, 0x00000000,/* MIPI_RX_WRAPPER80_CSI0A */
	0x11C14080, 0x00000002, 0x00000000,/* MIPI_RX_WRAPPER80_CSI0A */
	0x11C15080, 0x00000002, 0x00000000,/* MIPI_RX_WRAPPER80_CSI0A */
	0x13FFE004, 0x0000000F, 0x0000000F,/* MFG_CG_SET */
	0x13FFE008, 0x0000000F, 0x00000000,/* MFG_CG_CLR */
	0x14000100, 0x3FFFFFFF, 0x3FFFFFFF,/* MMSYS_CG_CON0 */
	0x15020000, 0x0000003D, 0x0000003D,/* IMG_CG_CON */
	0x17000000, 0x00001111, 0x00000000,/* VCODECSYS_CG_CON */
	0x17000004, 0x00001111, 0x00000000,/* VCODECSYS_CG_SET */
	0x17000008, 0x00001111, 0x00001111,/* VCODECSYS_CG_CLR */
	0x1A000000, 0x00001FC3, 0x00001FC3 /* CAMSYS_CG_CON */
};

const unsigned int *AP_CG_Golden_Setting_tcl_gs_suspend =
		AP_CG_Golden_Setting_tcl_gs_suspend_data;

unsigned int AP_CG_Golden_Setting_tcl_gs_suspend_len = 129;

const unsigned int AP_CG_Golden_Setting_tcl_gs_sodi_data[] = {
/*      Address     Mask        Golden Setting Value */
	0x11C10080, 0x00000002, 0x00000000,/* MIPI_RX_WRAPPER80_CSI0A */
	0x11C11080, 0x00000002, 0x00000000,/* MIPI_RX_WRAPPER80_CSI0A */
	0x11C12080, 0x00000002, 0x00000000,/* MIPI_RX_WRAPPER80_CSI0A */
	0x11C13080, 0x00000002, 0x00000000,/* MIPI_RX_WRAPPER80_CSI0A */
	0x11C14080, 0x00000002, 0x00000000,/* MIPI_RX_WRAPPER80_CSI0A */
	0x11C15080, 0x00000002, 0x00000000,/* MIPI_RX_WRAPPER80_CSI0A */
	0x14000100, 0x3FFFFFFF, 0x00000000,/* MMSYS_CG_CON0 */
	0x15020000, 0x0000003D, 0x0000003D,/* IMG_CG_CON */
	0x1A000000, 0x00001FC3, 0x00001FC3 /* CAMSYS_CG_CON */
};

const unsigned int *AP_CG_Golden_Setting_tcl_gs_sodi =
		AP_CG_Golden_Setting_tcl_gs_sodi_data;

unsigned int AP_CG_Golden_Setting_tcl_gs_sodi_len = 27;

